<!--
@Descripttion 弹框表单标题
@version 1.0.0
@Author Bell
@ 使用
  引入组件
    import DialogFormTitle from '@/components/dialog/dialog-form-title'
  注册组件
    components: {
      DialogFormTitle
    }
  使用
    <DialogFormTitle slot="title" title="新增" />
    title  String  必填  标题
 -->
<template>
  <div>
    {{ title }}
    <span class="el-title-must">
      <span>*</span>
      {{$t('dialog.Is required')}}
    </span>
  </div>
</template>

<script>
export default {
  name: 'dialog-form-title',
  props: {
    title: {
      type: String,
      required: true
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>
<style lang="less" scoped>
.el-title-must {
  padding-left: 8px;
  font-size: 12px;
}
.el-title-must>span {
  color: red;
}
</style>
